import { mapGetters, mapActions } from "vuex";

export default Vue => {
  Vue.mixin({
    data() {
      return {
        apiUrl: "https://admin.xmzhuchen.com/"
      };
    },
    computed: {
      ...mapGetters(["account", "config", "indexPic"])
    },
    methods: {
      ...mapActions(["getAccountAction", "getIndexPic"])
    }
  });
};
